package dt.inlee.domain;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 
 * @类名： DcUser
 * @功能说明：点餐系统菜品
 * @作者： 研发部-鄢松涛
 * @创建日期： 2014年9月19日下午3:31:41
 * @版本：1.0
 */
@Entity
@Table(name = "DC_FOOD")
public class DcFood {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    
    private String name;//菜名
    
    private Double price;//价格
    
    @ManyToOne
    private DcBusiness business;//所属商家

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public DcBusiness getBusiness() {
        return business;
    }

    public void setBusiness(DcBusiness business) {
        this.business = business;
    }
    
}
